package com.bank.study.controller;

import com.bank.study.pojo.Product;
import com.bank.study.service.OrderService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;

@RestController
public class HelloController {

    @Resource
    public OrderService orderService;

    @RequestMapping("/hello")
    public Product result(){
        return orderService.selectProductList();
    }
}
